Skip to content

Update service_container.rst #18790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

issamkhadiri1989
Copy link
Contributor

Hello,

I think there was a mistake in the method name. I think it must be renamed to formatMessage()

Hello, 

I think there was a mistake in the method name. I think it must be renamed to `formatMessage()`
@@ -1420,7 +1420,7 @@ You also have a service that defines many methods and one of them is the same
{
// other methods...

public function format($string $message, array $parameters): string
public function formatMessage($string $message, array $parameters): string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm missing something, but the method is called format() in the interface. So, the current text looks good to me. Could you please elaborate about why should we change this? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I have noticed also something wrong in the docs. I would rather to change the name of the function in the parameter of the AutowireCallable than the name of the function in the class MessageUtils (and therefore in the interface).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, I have done the changes in this PR : #19076

amelielecoz added a commit to amelielecoz/symfony-docs that referenced this pull request Oct 23, 2023
Changes in response to my comment on this PR symfony#18790
javiereguiluz added a commit that referenced this pull request Oct 23, 2023
…ielecoz)

This PR was merged into the 6.3 branch.

Discussion
----------

[DependencyInjection] Update service_container.rst

Changes in response to my comment on this PR #18790

Commits
-------

1eb68cb Update service_container.rst
@javiereguiluz
Copy link
Member

Closing as fixed in #19076. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants